CC=g++
CFLAGS=-g -c

all: libqytcp.a 

libqytcp.a: TCPChannel.o TCPServer.o TCPClient.o ../common/util.o
	ar -r libqytcp.a TCPChannel.o TCPServer.o TCPClient.o ../common/util.o

TCPChannel.o:	TCPChannel.h TCPChannel.cpp ../common/util.h
	$(CC) $(CFLAGS) TCPChannel.cpp

TCPServer.o:	TCPServer.h TCPServer.cpp ../common/util.h
	$(CC) $(CFLAGS) TCPServer.cpp

TCPClient.o:	TCPClient.h TCPClient.cpp ../common/util.h
	$(CC) $(CFLAGS) TCPClient.cpp

clean:
	rm *.o *.a
